package com.itheima;

import com.itheima.dao.DepartmentsDao;
import com.itheima.entity.Departments;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:springBean.xml")
public class Demo {
    @Autowired
    private DepartmentsDao departmentsDao;
    @Test
    public void test(){
        //List<Departments> list = departmentsDao.findAllDepartments();
        //System.out.println(list);
    }
}
